<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'groupId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'groupId', width:80, unresize:true, align:'center'}">分组ID</th>
        <th lay-data="{field:'groupName', unresize:true, align:'center'}">分组名称</th>
        <th lay-data="{field:'serviceGroupId', unresize:true, align:'center'}">客服组ID</th>
        <th lay-data="{field:'defaultType', width:80, unresize:true, align:'center'}">是否默认</th>
        <th lay-data="{field:'plat', width:180, unresize:true, align:'center'}">平台</th>
        <th lay-data="{field:'subCompanyId', width:180, unresize:true, align:'center'}">子公司</th>
        <th lay-data="{field:'sysId', width:180, unresize:true, align:'center'}">对接系统</th>
        <th lay-data="{field:'status', width:110, unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'creater', unresize:true,width:230, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'操作', width:180, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.groupId}" class="">groupId</td>
        <td th:text="${item.groupName}" class="layui-gray">groupName</td>
        <td th:text="${item.serviceGroupId}" class="layui-gray">serviceGroupId</td>
        <td th:text="${item.defaultType == 1 ? '否' : '是'}" class="layui-gray">defaultType</td>
        <td th:text="${T(com.zmn.plat.manager.dictionary.ProductDict).getShowPlatName(item.plat)}" class="layui-gray">plat</td>
        <td th:text="${item.subCompanyIdDisplayName}" class="layui-gray">subCompanyId</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.OnlineServiceGroupSysEnum).getName(item.sysId)}" class="layui-gray">sysId</td>
        <td>
            <div th:onmouseover="|show_tips(${(#authPermit.checkPermit('/online/service/group/updateStatus.action'))},'请先开启“启用/停用”的权限',this)|">
                <input th:disabled="${(#authPermit.checkPermit('/online/service/group/updateStatus.action'))?'false':'true'}" type="checkbox" name="status" id="status" th:key="${item.groupId}" th:value="${item.status}"
                       lay-text="ON|OFF" lay-skin="switch" lay-filter="chk_one_status" th:checked="${item.status == 2}"/>
            </div>
        </td>
        <td th:text="${(item.updater != null ? item.updater+'/' : '')+T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <a th:if="${#authPermit.checkPermit('/online/service/group/detail.action')}" style="color: #00a0e9" lay-text="修改" th:lay-href="|/online/service/group/detail.action?groupId=${item.groupId}|">修改</a>&nbsp;&nbsp;
            <a th:if="${#authPermit.checkPermit('/online/service/group/city/detail.action')}" style="color: #00a0e9" lay-text="城市配置" th:lay-href="|/online/service/group/city/detail.action?groupId=${item.groupId}|">城市配置</a>&nbsp;&nbsp;
            <a th:if="${#authPermit.checkPermit('/online/service/group/product/group/detail.action')}" style="color: #00a0e9" lay-text="产品组" th:lay-href="|/online/service/group/product/group/detail.action?groupId=${item.groupId}&bizType=1|">产品组</a>
        </td>
    </tr>
    </tbody>
</table>
